//---------------------------------------------------------------------------
#ifndef vSCopyVersionH
#define vSCopyVersionH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
#include "WebHelp.h"
#include "CEdit.h"
#include "CComboBx.h"
//---------------------------------------------------------------------------
class TCopyVersion : public TForm
{
    __published:	// Composants gérés par l'EDI
        TPanel *Panel1;
        TPanel *Panel2;
        TLabel *lLogiciel;
        TLabel *lVersionSource;
        TLabel *lVersionaide;
        TLabel *Label1;
        TLabel *lVersionCible;
        TBitBtn *bbOk;
        TBitBtn *BitBtn1;
        CEdit *cLogiciel;
        CEdit *cVerSource;
        CEdit *cVerCible;
        TPanel *pMenuBouton;
        CComboBox *cbLogiciel;
        CComboBox *cbVersion;
    TLabel *lRefWebHelp;
        void __fastcall bbOkClick(TObject *Sender);
    void __fastcall cbLogicielChange(TObject *Sender);
    void __fastcall cbVersionChange(TObject *Sender);
    
    private:
        int m_nLogCode;
        int m_nVerCode;

    //A partir de la fenetre ParamVersion
    private:	// Déclarations utilisateur
        bool __fastcall VerifVerNom(const AnsiString &asVerNom, const int &nLogCode);
        void __fastcall InsererTableVersion( void );
        int  __fastcall GetMaxID( void );
        void __fastcall InsererTableRefer(const int &nVerCodeCible);
        int  __fastcall GetMaxVersion( const int &nLogCode );
        TdmWebHelp * dmWebHelp;

    //A partir du menu
    private:
        void __fastcall AjouterLog( void );


    public:		// Déclarations utilisateur
        __fastcall TCopyVersion(const AnsiString &asLogNom,
                                const int &nLogCode,
                                const AnsiString &asVerNom,
                                const int &nVerCode,
                                const bool &bMenu,
                                TComponent* Owner);
        __fastcall ~TCopyVersion();
};
//---------------------------------------------------------------------------
#endif
